﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Company.Infrastructure
{
    public class RuleViolations
    {
        public string PropertyName { get; private set; }
        public object PropertyValue { get; private set; }
        public string ErrorMessage { get; private set; }

        public RuleViolations(string propertyName, object propertyValue, string errorMessage)
        {
            PropertyName = propertyName;
            PropertyValue = propertyValue;
            ErrorMessage = errorMessage;
        }

        public RuleViolations(string propertyName, string errorMessage)
        {
            PropertyName = propertyName;
            PropertyValue = string.Empty;
            ErrorMessage = errorMessage;
        }

        public RuleViolations(string errorMessage)
        {
            PropertyName = string.Empty;
            PropertyValue = string.Empty;
            ErrorMessage = errorMessage;
        }


    }
}
